package com.sunyard.entity;

import java.io.Serializable;


/**
 * @author daox.nie
 * @created 2016年11月29日 上午11:35:27
 * @description 传到页面的提示框数据的实体类
 */
public class BackResult extends LogStatus implements Serializable {

    /**
     * Description
     */
    private static final long serialVersionUID = -9146456459948957130L;


    /**
     * 返回码
     */
    private String dataCode;

    /**
     * 页面提示信息
     */
    private String dataMessage;


    /**
     * Description
     */
    public BackResult() {
        super();
    }

    /**
     * Description
     */
    public BackResult(String code, String message) {
        super();
        this.dataCode = code;
        this.dataMessage = message;
    }

    /**
     * @return the code
     */
    public String getDataCode() {
        return dataCode;
    }

    /**
     * @param code the code to set
     */
    public void setDataCode(String code) {
        this.dataCode = code;
    }

    /**
     * Description
     */
    public String getDataMessage() {
        return dataMessage;
    }

    /**
     * Description
     */
    public void setDataMessage(String message) {
        this.dataMessage = message;
    }

    /**
     * Description
     */
    public void setBackResult(String code, String message) {
        this.dataCode = code;
        this.dataMessage = message;
    }

    /**
     * Description
     */
    public static String back(String code, Object message) {
        return new BackResult(code, message.toString()).toString();
    }


}
